package cn.bytepath.org.mapper;

import cn.bytepath.base.mapper.BaseMapper;
import cn.bytepath.org.domain.Shop;

/**
 * 商户的mapper层
 * @author Jack.C
 * @createDate 2022-02-10
 * @version 1.0
 */
public interface ShopMapper extends BaseMapper<Shop> {

    /**
     * 根据id禁用商户
     * @param id 商户id
     * @update 2022/2/11
     */
    void forbid(Long id);

    /**
     * 根据id启用商户
     * @param shop 商户对象
     * @update 2022/2/12
     */
    void permit(Shop shop);

    /**
     * 根据id驳回商户入驻请求,并将驳回信息存入数据库中
     * @param shop 商户对象
     * @update 2022/2/12
     */
    void auditBack(Shop shop);
}
